#include <iostream>
#include "class.h"

using namespace std;

int main()


{
figure pfigure;
circle pcircle;
square psquare;

    int a,b,c;
    cout << "Enter: \n 1.circle \n 2.square \n";

    cin >> a;
    switch(a)
    {
     case 1:
        pfigure = pcircle;
        cout <<"You chose the circle" <<endl;
        cout <<"1.Moove or 2.Show? \n\n";
        cin >>b;
        switch(b)
        {
        case 1:pcircle.moove();
            break;
        case 2: pcircle.show();
            break;
        }
        break;
      case 2: pfigure = psquare;
        cout <<"You chose the square " <<endl;
        cout <<"1.Moove or 2.Show? \n\n";
        cin >>b;
        switch(b)
        {
        case 1:psquare.moove();
            break;
        case 2: psquare.show();
            break;
        }
        break;
    }


}

